/*
 * prn_func.h
 *
 *  Created on: 27.11.2011
 *      Author: alexs
 */

#ifndef PRN_FUNC_H_
#define PRN_FUNC_H_
#include "stm32f10x.h"
#include "string.h"
#include "main.h"

typedef enum{HEX,DEC,STR} dbg_info_type;
#define DBGulh(a,b,c) DBG(HEX,a,b,c)
#define DBGuld(a,b,c) DBG(DEC,a,b,c)
#define DBGstr(a) DBG(STR,a,0,a)

size_t ulong2str(char *, const size_t, const uint32_t);
size_t ulong2hstr(char *, const size_t, const uint32_t);
void DBG(const dbg_info_type, const char *, const uint32_t, const char *);

#endif /* PRN_FUNC_H_ */
